---
title: "SQL-014: Get policy affiliate type"
summary: Retrieve the affiliate type for a policy.
status: draft
owner: SAIF Corporation
last_reviewed: 2026-08-21
library: SAIF.Business.View.Policy
reference_type: embedded
---

# SQL-014 Get policy affiliate type

Retrieve the affiliate type for a policy.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-014 |
| **Operation type** | Read |
| **Execution method** | Stored procedure |
| **Database** | Oracle |
| **Schema** | `[unqualified]**` |
| **Command type** | StoredProcedure |
| **Business object** | `clsPolicyData` |
| **Criteria property** | `GetAffiliateTypeSQL` (`<Obsolete>`) |
| **Lifecycle method** | `GetAffiliateType` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:in_policy_num` | Input | Decimal | N/A | Policy number |
| `:in_is_policyholder_user` | Input | String | 1 | Policyholder-user flag |
| `:v_affiliate_type` | ReturnValue | String | 20 | Affiliate type code |

## Tables

N/A — Stored procedure

## Sample SQL

```sql
-- Oracle stored procedure call (CommandType.StoredProcedure, Scalar)
-- clsPolicyData.GetAffiliateType  [Obsolete]
CALL pk72846_view_policy.getpolicyaffiliatetype(
  :in_policy_num,
  :in_is_policyholder_user,
  :v_affiliate_type)   -- ParameterDirection.ReturnValue
```


## Operations and processes
- [Retrieve affiliated policies (legacy)](../operations-processes.md)

## Business rules
- [BR-VP-012: Affiliated policy list filtered by agent/agency](../business-rules.md#br-vp-012-affiliated-policy-list-filtered-by-agentagency)
- [BR-VP-013: DisplayAffiliatedPolices matrix controls display](../business-rules.md#br-vp-013-displayaffiliatedpolices-matrix-controls-display)

## Sources
- `SAIF.Business.View.Policy/clsPolicyData.vb`
